﻿using System;
using BizControl.Presentation.Infrastructure.Controls;
using System.ComponentModel.Composition;
using Microsoft.Practices.Prism.Regions;
using BizControl.Presentation.Infrastructure.Constants;

namespace BizControl.Presentation.AboutModule.ViewModels
{
  [Export]
  public class AboutNavigationViewModel : NavigationViewModel
  {
    private IRegionManager _regionManager;

    [ImportingConstructor]
    public AboutNavigationViewModel(IRegionManager regionManager)
    {
      _regionManager = regionManager;
    }

    public override System.Windows.Media.ImageSource ImagePath
    {
      get
      {
        return Constants.ViewModelImagePath;
      }
    }

    public override string Text
    {
      get
      {
        return Constants.ViewModelText;
      }
    }

    protected override void Navigate()
    {
      _regionManager.RequestNavigate(ShellRegionNames.MainContentRegion, ViewNames.AboutViewName);
    }
  }
}
